<script src="/at/bower_components/ckeditor/ckeditor.js"></script>
<div class="row">
        <div class="col-xs-12">
          <!-- interactive chart -->
          <div class="box box-primary">
            <div class="box-header with-border">
              <h3 class="box-title">创建</h3>
    
              
              <div class="box-tools">
                    <div class="btn-group pull-right" style="margin-right: 10px">
                        <a href="/article/index" class="btn btn-sm btn-default"><i class="fa fa-list"></i>&nbsp;列表</a>
                    </div> 
                    <div class="btn-group pull-right" style="margin-right: 10px">
                        <a class="btn btn-sm btn-default form-history-back"><i class="fa fa-arrow-left"></i>&nbsp;返回</a>
                    </div>
        	</div>
            </div>
            <div class="box-body">
            
            
            <form class="form-horizontal" action="/article/post" method="post">
            <input name="id" type="hidden" value="<?php echo @$data['id']?>">
                  <div class="form-group">
                    <label for="inputEmail3" class="col-sm-2 control-label">文章标题</label>
                    <div class="col-sm-5">
                      <input type="text" value="<?php echo @$data['title']?>" class="form-control" name='title' id="inputEmail3" placeholder="文章标题">
                    </div>
                  </div>
                  
                  <div class="form-group">
                    <label for="inputPassword3" class="col-sm-2 control-label">文章内容</label>
                    <div class="col-sm-5">
                    <textarea name="countent" placeholder="文章内容"><?php echo @$data['countent']?></textarea>
                    
                    </div>
                  </div>
                  
                  <div class="form-group">
                    <div class="col-sm-offset-2 col-sm-5">
                      <button type="submit" class="btn btn-default">提交</button>
                    </div>
                  </div>
			</form>
            
            </div>
            <!-- /.box-body-->
          </div>
          <!-- /.box -->

        </div>
        <!-- /.col -->
      </div>
<script type="text/javascript">

    CKEDITOR.replace( 'countent' );

    var result = "<?php echo $this->input->get('result')?>";

    if(result == 'ok'){
		layer.msg('操作成功')
    }else if (result == 'on') {
    	layer.msg('操作失败')
	}

</script>      